package com.zeratul.common.event.core.handler.local;

import com.zeratul.common.event.domain.ZtEvent;
import org.springframework.context.ApplicationEvent;

/**
 * 自定义spring事件
 */
public class ZtApplicationEvent<T> extends ApplicationEvent {

    private final ZtEvent<T> ztEvent;

    public ZtApplicationEvent(Object context, ZtEvent<T> ztEvent) {
        super(context);
        this.ztEvent = ztEvent;
    }

    public ZtEvent<T> getZtEvent() {
        return ztEvent;
    }
}
